package com.ly.heart.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.heart.mapper.KingInquiryDetailEntryMapper;
import com.ly.heart.service.IKingInquiryDetailEntryService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingInquiryDetailEntryEntity;

import javax.annotation.Resource;

/**
 * 金蝶-询价/报价单明细分录信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-11
 */
@Service
public class KingInquiryDetailEntryServiceImpl extends ServiceImpl<KingInquiryDetailEntryMapper,KingInquiryDetailEntryEntity> implements IKingInquiryDetailEntryService {

    @Resource
    private KingInquiryDetailEntryMapper kingInquiryDetailEntryMapper;

    /**
     * 查询金蝶-询价/报价单明细分录信息
     *
     * @param id 金蝶-询价/报价单明细分录信息ID
     * @return 金蝶-询价/报价单明细分录信息
     */
    @Override
    public KingInquiryDetailEntryEntity selectKingInquiryDetailEntryEntityById(String id)
    {
        return kingInquiryDetailEntryMapper.selectKingInquiryDetailEntryEntityById(id);
    }

    /**
     * 查询金蝶-询价/报价单明细分录信息列表
     *
     * @param kingInquiryDetailEntryEntity 金蝶-询价/报价单明细分录信息
     * @return 金蝶-询价/报价单明细分录信息
     */
    @Override
    public List<KingInquiryDetailEntryEntity> selectKingInquiryDetailEntryEntityList(KingInquiryDetailEntryEntity kingInquiryDetailEntryEntity)
    {
        return kingInquiryDetailEntryMapper.selectKingInquiryDetailEntryEntityList(kingInquiryDetailEntryEntity);
    }

    /**
     * 新增金蝶-询价/报价单明细分录信息
     *
     * @param kingInquiryDetailEntryEntity 金蝶-询价/报价单明细分录信息
     * @return 结果
     */
    @Override
    public int insertKingInquiryDetailEntryEntity(KingInquiryDetailEntryEntity kingInquiryDetailEntryEntity)
    {
        return kingInquiryDetailEntryMapper.insertKingInquiryDetailEntryEntity(kingInquiryDetailEntryEntity);
    }

    /**
     * 修改金蝶-询价/报价单明细分录信息
     *
     * @param kingInquiryDetailEntryEntity 金蝶-询价/报价单明细分录信息
     * @return 结果
     */
    @Override
    public int updateKingInquiryDetailEntryEntity(KingInquiryDetailEntryEntity kingInquiryDetailEntryEntity)
    {
        return kingInquiryDetailEntryMapper.updateKingInquiryDetailEntryEntity(kingInquiryDetailEntryEntity);
    }

    /**
     * 批量删除金蝶-询价/报价单明细分录信息
     *
     * @param ids 需要删除的金蝶-询价/报价单明细分录信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryDetailEntryEntityByIds(String[] ids)
    {
        return kingInquiryDetailEntryMapper.deleteKingInquiryDetailEntryEntityByIds(ids);
    }

    /**
     * 删除金蝶-询价/报价单明细分录信息信息
     *
     * @param id 金蝶-询价/报价单明细分录信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryDetailEntryEntityById(String id)
    {
        return kingInquiryDetailEntryMapper.deleteKingInquiryDetailEntryEntityById(id);
    }
}
